package com.sense.cloud.coreservice.sdk.auth.modules;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;

public class ChkResult implements Serializable {
  private static final long serialVersionUID = 1L;
  private boolean result;

  @JSONField(serialize = false)
  private ErrorCode status;

  public boolean isResult() {
    return result;
  }

  public void setResult(boolean result) {
    this.result = result;
  }

  public ErrorCode getStatus() {
    return status;
  }

  public void setStatus(ErrorCode status) {
    this.status = status;
  }

  public int getCode() {
    return status.getCode();
  }

  public String getMsg() {
    return status.getDesc();
  }

}
